.class public Lcom/estrongs/android/ui/preference/fragments/FileNotifyPreferenceFragment;
.super Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;
.source "FileNotifyPreferenceFragment.java"


# instance fields
.field private a:Lcom/estrongs/android/widget/m;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;-><init>()V

    return-void
.end method

.method private a(Landroidx/preference/Preference;ZLandroidx/preference/Preference;)V
    .locals 0

    .line 11
    invoke-virtual {p1, p2}, Landroidx/preference/Preference;->setEnabled(Z)V

    .line 12
    invoke-virtual {p3, p2}, Landroidx/preference/Preference;->setEnabled(Z)V

    .line 13
    invoke-static {}, Les/eo;->k()Les/eo;

    move-result-object p1

    invoke-virtual {p1, p2}, Les/eo;->a(Z)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/preference/fragments/FileNotifyPreferenceFragment;Landroidx/preference/Preference;ZLandroidx/preference/Preference;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2, p3}, Lcom/estrongs/android/ui/preference/fragments/FileNotifyPreferenceFragment;->a(Landroidx/preference/Preference;ZLandroidx/preference/Preference;)V

    return-void
.end method

.method static synthetic a(Ljava/util/Set;Landroid/content/DialogInterface;)V
    .locals 1

    .line 18
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object p1

    const-string v0, "new_file_notify_setting"

    invoke-virtual {p1, v0, p0}, Lcom/estrongs/android/pop/o;->b(Ljava/lang/String;Ljava/util/Set;)V

    .line 19
    invoke-static {}, Les/eo;->k()Les/eo;

    move-result-object p0

    invoke-virtual {p0}, Les/eo;->j()V

    .line 20
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p0

    const p1, 0x7f110a0e

    const/4 v0, 0x0

    invoke-static {p0, p1, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object p0

    invoke-virtual {p0}, Landroid/widget/Toast;->show()V

    return-void
.end method

.method static synthetic a([ZLjava/util/Set;[Ljava/lang/String;Landroid/content/DialogInterface;I)V
    .locals 0

    .line 14
    aget-boolean p3, p0, p4

    xor-int/lit8 p3, p3, 0x1

    aput-boolean p3, p0, p4

    .line 15
    aget-boolean p0, p0, p4

    if-eqz p0, :cond_0

    .line 16
    aget-object p0, p2, p4

    invoke-interface {p1, p0}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 17
    :cond_0
    aget-object p0, p2, p4

    invoke-interface {p1, p0}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

    :goto_0
    return-void
.end method

.method private b()V
    .locals 4

    const-string v0, "new_file_format"

    .line 1
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    const-string v1, "new_apk_format"

    .line 2
    invoke-virtual {p0, v1}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v1

    .line 3
    new-instance v2, Lcom/estrongs/android/ui/preference/fragments/b1;

    invoke-direct {v2, p0}, Lcom/estrongs/android/ui/preference/fragments/b1;-><init>(Lcom/estrongs/android/ui/preference/fragments/FileNotifyPreferenceFragment;)V

    invoke-virtual {v0, v2}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    .line 4
    new-instance v2, Lcom/estrongs/android/ui/preference/fragments/c1;

    invoke-direct {v2, p0}, Lcom/estrongs/android/ui/preference/fragments/c1;-><init>(Lcom/estrongs/android/ui/preference/fragments/FileNotifyPreferenceFragment;)V

    invoke-virtual {v1, v2}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    const-string v2, "new_file_notify_setting"

    .line 5
    invoke-virtual {p0, v2}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v2

    check-cast v2, Landroidx/preference/CheckBoxPreference;

    .line 6
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v3

    invoke-virtual {v3}, Lcom/estrongs/android/pop/o;->I()Z

    move-result v3

    invoke-virtual {v2, v3}, Landroidx/preference/TwoStatePreference;->setChecked(Z)V

    .line 7
    new-instance v3, Lcom/estrongs/android/ui/preference/fragments/y0;

    invoke-direct {v3, p0, v0, v1, v2}, Lcom/estrongs/android/ui/preference/fragments/y0;-><init>(Lcom/estrongs/android/ui/preference/fragments/FileNotifyPreferenceFragment;Landroidx/preference/Preference;Landroidx/preference/Preference;Landroidx/preference/CheckBoxPreference;)V

    invoke-virtual {v2, v3}, Landroidx/preference/Preference;->setOnPreferenceChangeListener(Landroidx/preference/Preference$OnPreferenceChangeListener;)V

    .line 8
    invoke-virtual {v2}, Landroidx/preference/TwoStatePreference;->isChecked()Z

    move-result v3

    invoke-virtual {v0, v3}, Landroidx/preference/Preference;->setEnabled(Z)V

    .line 9
    invoke-virtual {v2}, Landroidx/preference/TwoStatePreference;->isChecked()Z

    move-result v3

    invoke-virtual {v1, v3}, Landroidx/preference/Preference;->setEnabled(Z)V

    .line 10
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v3

    iget-boolean v3, v3, Lcom/estrongs/android/pop/FexApplication;->l:Z

    if-eqz v3, :cond_0

    .line 11
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v3

    invoke-virtual {v3}, Lcom/estrongs/android/pop/l;->Z0()Z

    move-result v3

    if-nez v3, :cond_0

    const/4 v3, 0x0

    .line 12
    invoke-virtual {v2, v3}, Landroidx/preference/Preference;->setEnabled(Z)V

    .line 13
    invoke-virtual {v0, v3}, Landroidx/preference/Preference;->setEnabled(Z)V

    .line 14
    invoke-virtual {v1, v3}, Landroidx/preference/Preference;->setEnabled(Z)V

    :cond_0
    return-void
.end method

.method private d()V
    .locals 2

    .line 1
    new-instance v0, Lcom/estrongs/android/widget/m;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/estrongs/android/widget/m;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/FileNotifyPreferenceFragment;->a:Lcom/estrongs/android/widget/m;

    .line 2
    invoke-virtual {v0}, Lcom/estrongs/android/widget/m;->show()V

    return-void
.end method

.method private f()V
    .locals 7

    .line 1
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f030011

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v0

    .line 2
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f030012

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v1

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v2

    const-string v3, "new_file_notify_setting"

    invoke-virtual {v2, v3}, Lcom/estrongs/android/pop/o;->c(Ljava/lang/String;)Ljava/util/Set;

    move-result-object v2

    .line 4
    array-length v3, v1

    new-array v3, v3, [Z

    if-nez v2, :cond_0

    .line 5
    new-instance v2, Ljava/util/HashSet;

    invoke-direct {v2}, Ljava/util/HashSet;-><init>()V

    .line 6
    invoke-static {v2, v1}, Ljava/util/Collections;->addAll(Ljava/util/Collection;[Ljava/lang/Object;)Z

    :cond_0
    const/4 v4, 0x0

    .line 7
    :goto_0
    array-length v5, v1

    if-ge v4, v5, :cond_1

    .line 8
    aget-object v5, v1, v4

    invoke-interface {v2, v5}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v5

    aput-boolean v5, v3, v4

    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 9
    :cond_1
    new-instance v4, Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v5

    invoke-direct {v4, v5}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    const v5, 0x7f110853

    .line 10
    invoke-virtual {p0, v5}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/estrongs/android/ui/dialog/q;->setTitle(Ljava/lang/CharSequence;)V

    const/4 v5, 0x1

    .line 11
    invoke-virtual {v4, v5}, Lcom/estrongs/android/ui/dialog/q;->setSelectable(Z)V

    const/4 v5, 0x0

    .line 12
    new-instance v6, Lcom/estrongs/android/ui/preference/fragments/z0;

    invoke-direct {v6, v3, v2, v1}, Lcom/estrongs/android/ui/preference/fragments/z0;-><init>([ZLjava/util/Set;[Ljava/lang/String;)V

    invoke-virtual {v4, v5, v0, v3, v6}, Lcom/estrongs/android/ui/dialog/q;->setItems([Landroid/graphics/drawable/Drawable;[Ljava/lang/CharSequence;[ZLandroid/content/DialogInterface$OnClickListener;)V

    .line 13
    new-instance v0, Lcom/estrongs/android/ui/preference/fragments/a1;

    invoke-direct {v0, v2}, Lcom/estrongs/android/ui/preference/fragments/a1;-><init>(Ljava/util/Set;)V

    invoke-virtual {v4, v0}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 14
    invoke-virtual {v4}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return-void
.end method


# virtual methods
.method public synthetic a(Landroidx/preference/Preference;)Z
    .locals 0

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/ui/preference/fragments/FileNotifyPreferenceFragment;->f()V

    const/4 p1, 0x1

    return p1
.end method

.method public synthetic a(Landroidx/preference/Preference;Landroidx/preference/Preference;Landroidx/preference/CheckBoxPreference;Landroidx/preference/Preference;Ljava/lang/Object;)Z
    .locals 2

    .line 3
    check-cast p5, Ljava/lang/Boolean;

    invoke-virtual {p5}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p4

    const/4 p5, 0x1

    if-eqz p4, :cond_1

    .line 4
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-static {v0}, Lcom/permission/runtime/f;->a(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 5
    invoke-direct {p0, p1, p5, p2}, Lcom/estrongs/android/ui/preference/fragments/FileNotifyPreferenceFragment;->a(Landroidx/preference/Preference;ZLandroidx/preference/Preference;)V

    goto :goto_0

    .line 6
    :cond_0
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-static {v0}, Lcom/permission/runtime/e$a;->a(Landroid/content/Context;)Lcom/permission/runtime/e$a;

    move-result-object v0

    const-string v1, "android.permission.SYSTEM_ALERT_WINDOW"

    .line 7
    invoke-virtual {v0, v1}, Lcom/permission/runtime/e$a;->a(Ljava/lang/String;)Lcom/permission/runtime/e$a;

    new-instance v1, Lcom/estrongs/android/ui/preference/fragments/a2;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/estrongs/android/ui/preference/fragments/a2;-><init>(Lcom/estrongs/android/ui/preference/fragments/FileNotifyPreferenceFragment;Landroidx/preference/Preference;Landroidx/preference/Preference;Landroidx/preference/CheckBoxPreference;)V

    .line 8
    invoke-virtual {v0, v1}, Lcom/permission/runtime/e$a;->a(Lcom/permission/runtime/c;)V

    goto :goto_0

    .line 9
    :cond_1
    invoke-direct {p0, p1, p4, p2}, Lcom/estrongs/android/ui/preference/fragments/FileNotifyPreferenceFragment;->a(Landroidx/preference/Preference;ZLandroidx/preference/Preference;)V

    :goto_0
    if-nez p4, :cond_2

    .line 10
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    const-string p2, "newfile_float"

    const-string p3, "close_click"

    invoke-virtual {p1, p2, p3}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :cond_2
    return p5
.end method

.method public synthetic b(Landroidx/preference/Preference;)Z
    .locals 2

    .line 15
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    const-string v0, "apk_select_settings_click"

    const-string v1, "click"

    .line 16
    invoke-virtual {p1, v0, v1}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 17
    invoke-direct {p0}, Lcom/estrongs/android/ui/preference/fragments/FileNotifyPreferenceFragment;->d()V

    const/4 p1, 0x1

    return p1
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/ui/preference/fragments/FileNotifyPreferenceFragment;->a:Lcom/estrongs/android/widget/m;

    if-eqz p1, :cond_0

    .line 3
    invoke-virtual {p1}, Lcom/estrongs/android/widget/m;->a()V

    :cond_0
    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Landroidx/preference/PreferenceFragmentCompat;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/ui/preference/TabletSettingsActivity;->b(Landroid/content/Context;)Z

    move-result p1

    if-eqz p1, :cond_0

    const p1, 0x7f140025

    .line 3
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->addPreferencesFromResource(I)V

    goto :goto_0

    :cond_0
    const p1, 0x7f140017

    .line 4
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->addPreferencesFromResource(I)V

    .line 5
    :goto_0
    invoke-direct {p0}, Lcom/estrongs/android/ui/preference/fragments/FileNotifyPreferenceFragment;->b()V

    return-void
.end method
